package cn.chenhuanming.shh.administer.entity.jpa;

import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * HouseComplain entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "house_complain", catalog = "house")
public class HouseComplain implements java.io.Serializable {

	// Fields

	private Integer id;
	private House house;
	private String type;
	private String message;
	private String name;
	private String phone;
	private String email;
	private String result;
	private LocalDateTime time;
	private String operator;
	private LocalDateTime operateTime;
	private String operateStatus;
	private String status;

	// Constructors

	/** default constructor */
	public HouseComplain() {
	}

	/** minimal constructor */
	public HouseComplain(Integer id, House house, String type, String message,
			String phone, String operateStatus, String status) {
		this.id = id;
		this.house = house;
		this.type = type;
		this.message = message;
		this.phone = phone;
		this.operateStatus = operateStatus;
		this.status = status;
	}

	/** full constructor */
	public HouseComplain(Integer id, House house, String type, String message,
			String name, String phone, String email, String result,
			LocalDateTime time, String operator, LocalDateTime operateTime,
			String operateStatus, String status) {
		this.id = id;
		this.house = house;
		this.type = type;
		this.message = message;
		this.name = name;
		this.phone = phone;
		this.email = email;
		this.result = result;
		this.time = time;
		this.operator = operator;
		this.operateTime = operateTime;
		this.operateStatus = operateStatus;
		this.status = status;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "house_id", nullable = false)
	public House getHouse() {
		return this.house;
	}

	public void setHouse(House house) {
		this.house = house;
	}

	@Column(name = "type", nullable = false, length = 5)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "message", nullable = false, length = 65535)
	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Column(name = "name", length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "phone", nullable = false, length = 12)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "email", length = 50)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "result")
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Column(name = "time", length = 19)
	public LocalDateTime getTime() {
		return this.time;
	}

	public void setTime(LocalDateTime time) {
		this.time = time;
	}

	@Column(name = "operator", length = 20)
	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	@Column(name = "operate_time", length = 19)
	public LocalDateTime getOperateTime() {
		return this.operateTime;
	}

	public void setOperateTime(LocalDateTime operateTime) {
		this.operateTime = operateTime;
	}

	@Column(name = "operate_status", nullable = false, length = 4)
	public String getOperateStatus() {
		return this.operateStatus;
	}

	public void setOperateStatus(String operateStatus) {
		this.operateStatus = operateStatus;
	}

	@Column(name = "status", nullable = false, length = 3)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}